<template>
  <div class="hello">

    <div>
      <ul>
        <li v-for="news in newsData">
           <p>{{ news.title }}</p>
           <img :src="news.thumbnail_pic_s" alt="">
        </li>
      </ul>
    </div>

  </div>
</template>

<script>
export default {
  name: 'HelloWorld',
  data () {
    return {
      newsData:[]
    }
  },
  created(){
    this.$axios("/sxtstu/news/juhenews.php",{
      params:{
        type:"junshi",
        count:30
      }
    })
    .then(res => {
      this.newsData = res.data;
      console.log(res.data);
    })
    .catch(error => {
      console.log(error);
    })
  }
}
</script>

<style scoped>

</style>
